<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="调账记录" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script language="javascript">
	function showMe(){
		if(parent.document.getElementById("detailFrm")!=null){
			parent.document.getElementById("detailFrm").style.height=document.body.scrollHeight+"px";
		}
	}
</script>
</head>
<body style="margin:0px;padding:0px;" oncontextmenu="return false" onLoad="showMe();"   class="sheet">
<div class="sheet-main" style="width:980px">
	  <div class="sheet-list">
			  <div class="table-list" >
			   <fieldset class="det_fieldset "> <legend class="mag10">调账记录</legend>  	
			     <table width="100%" align="center">      
							<tr>
								<th width="15%">调账日期</th>
								<th width="20%">调账单号</th>
								<th width="15%">调账类型</th>
								<th width="15%">经手人</th>
								<c:if test="${examined=='Y'}">
									<th width="15%">金额（元）</th>
									<th width="20%">摘要</th>
								</c:if>
								<c:if test="${examined!='Y'}">
									<th width="20%">金额（元）</th>
									<th width="15%">状态</th>
								</c:if>
							</tr>
							<c:forEach var="item" items="${items}">
							<tr>
								<td><fmt:formatDate value="${item[0].adjustDate}" pattern="yyyy-MM-dd"/></td>
								<td>${item[0].billCode}</td>
								<td>
									<c:if test="${item[0].adjustType=='COLLECT_ADD'}">应收款增加</c:if>
						    		<c:if test="${item[0].adjustType=='COLLECT_ABATE'}">应收款减少</c:if>
								</td>
								<td>${item[0].managerName}</td>
								<td><commonTag:parseBigDecimal source="${item[1].thisCost}" /></td>
								<c:if test="${examined=='Y'}">
									<td>${item[1].content}</td>
								</c:if>
								<c:if test="${examined!='Y'}">
									<td>
										<c:if test="${item[0].examined=='Y'}">已审核</c:if>
										<c:if test="${item[0].examined=='N'}">未审核</c:if>
									</td>
								</c:if>
							</tr>
							</c:forEach>
				   </table>
			   </fieldset>
			  </div>
			</div>
</div>
</body>
</html>